import java.util.ArrayList;


public class Author {
	FileParser parser;
	String name;
	String conference;
	String manuscript;
	String underwear;
	String hand;
	
	
	private Author() {
		
		name = null;
		conference = null;
	}
	
	public Author(FileParser fp, String aName, String aConference) {
		parser = fp;
		name = aName;
		conference = aConference;
		
		initFields();
	}
	
	public Author(String aName, String aConference, 
			String aManuscript, String aUnderwear, String aHand) {
		
		name = aName;
		conference = aConference;
		manuscript = aManuscript;
		underwear = aUnderwear;
		hand = aHand;
		
	}
	
	
	public String getManuscript() {
		return manuscript;
	}

	public void setManuscript(String manuscript) {
		this.manuscript = manuscript;
	}

	public String getUnderwear() {
		return underwear;
	}

	public void setUnderwear(String underwear) {
		this.underwear = underwear;
	}

	public String getHand() {
		return hand;
	}

	public void setHand(String hand) {
		this.hand = hand;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getConference() {
		return conference;
	}
	public void setConference(String conference) {
		this.conference = conference;
	}
	
	private void initFields() {
		ArrayList fields;
		
		fields = parser.parseFile("Author", name, conference);
		
		int temp = 0;
		
			manuscript = (String) fields.get(temp);
			underwear = (String) fields.get(temp += 1);
			hand = (String) fields.get(temp += 1);
		
		
		
		
	}

}
